Skip to content

fix: #20878 Provide " as member" where needed#20887

Closed
robertleeplummerjr wants to merge 1 commit intoOpenAPITools:masterfrom
robertleeplummerjr:master
Closed

fix: #20878 Provide " as member" where needed#20887
robertleeplummerjr wants to merge 1 commit intoOpenAPITools:masterfrom
robertleeplummerjr:master

Conversation

@robertleeplummerjr
Copy link
Copy Markdown

@robertleeplummerjr robertleeplummerjr commented Mar 14, 2025

  • Generate new samples
  • Add tests for all effected python versions
  • Ran tests with success

Commands used to verify:

./bin/generate-samples.sh ./bin/configs/python*
mvn verify -Psamples
mvn integration-test -f modules/openapi-generator/pom.xml -Dtest=org.openapitools.codegen.python.PythonPydanticV1ClientCodegenTest -e mvn integration-test -f modules/openapi-generator/pom.xml -Dtest=org.openapitools.codegen.python.PythonClientCodegenTest -e

I didn't include the updates to all samples, only those for python, but I do have a commit for all samples here: e014bb2
I omitted because I didn't want to cause a conflict.

to close #20878

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • Run the following to build the project and update samples:
    ./mvnw clean package || exit
    ./bin/generate-samples.sh ./bin/configs/*.yaml || exit
    ./bin/utils/export_docs_generators.sh || exit
    
    (For Windows users, please run the script in Git BASH)
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
    IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
  • File the PR against the correct branch: master (upcoming 7.x.0 minor release - breaking changes with fallbacks), 8.0.x (breaking changes without fallbacks)
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

- Generate new samples
- Add tests for all effected python versions
- Ran tests with success

Commands used to verify:
./bin/generate-samples.sh ./bin/configs/python*
mvn verify -Psamples
mvn integration-test -f modules/openapi-generator/pom.xml -Dtest=org.openapitools.codegen.python.PythonPydanticV1ClientCodegenTest -e
mvn integration-test -f modules/openapi-generator/pom.xml -Dtest=org.openapitools.codegen.python.PythonClientCodegenTest -e
@robertleeplummerjr
Copy link
Copy Markdown
Author

Mentioning Members of Technical Committee: @cbornet (2017/09) @tomplus (2018/10) @krjakbrjak (2023/02) @fa0311 (2023/10) @multani (2023/10)


@Test(description = "outputs __init__.py with imports for exports")
public void testInitFileImportsExports() throws IOException {
File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
Copy link
Copy Markdown
Author

@robertleeplummerjr robertleeplummerjr Mar 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably could be simpler. I used an LLM to get a template to work from. I welcome any feedback.

@wing328
Copy link
Copy Markdown
Member

wing328 commented Mar 24, 2025

@robertleeplummerjr thanks for the pr. can you please review the build failure when you've time?

@robert-lore
Copy link
Copy Markdown
Contributor

@wing328 I believe those errors to be unrelated to the changes introduced by this PR, possibly from the tests being fragile. I didn't see a place where I can re-run them but perhaps that would provide them a chance to run successfully.

@wing328 wing328 mentioned this pull request May 20, 2025
5 tasks
@wing328
Copy link
Copy Markdown
Member

wing328 commented May 20, 2025

fixed tests via #21304

closing this one. thanks again for the PR

@wing328 wing328 closed this May 20, 2025
@robertleeplummerjr
Copy link
Copy Markdown
Author

You guys rock. This project is pretty fantastic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG][python] Clients throws reportPrivateImportUsage when used as a package

3 participants